package com.zzhua.filter;

import javax.servlet.*;
import java.io.IOException;

public class UserFilter2 implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("userFilter2 init...自定义过滤器userFilter2初始化");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("userFilter2 doFilter...自定义过滤器userFilter2执行");
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    public void destroy() {
        System.out.println("userFilter2 destroy...自定义过滤器userFilter2销毁");
    }
}
